package com.teziyou.commodity.web;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.teziyou.commodity.service.AreaService;

@SuppressWarnings({"rawtypes", "unchecked"})
@RequestMapping("/area")
@Controller
public class AreaController {
	
	@Autowired
	private AreaService areaService;
	
	@RequestMapping("/select")
	public String select(int id, Map map) {
		map.put("areas", areaService.getAdministrativeListByPid(id, -1));
		return "area/select";
	}

}
